Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace flake8, isort, and pyupgrade with ruff #229

Closed
wants to merge 3 commits into from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Mar 31, 2023

Ruff supports over 500 lint rules and can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing (in Rust) tens or hundreds of times faster than any individual tool.

Running ruff --format=github . in GitHub Actions will rapidly provide intuitive GitHub Annotations to contributors.

image

cclauss added 3 commits March 31, 2023 10:18
[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) and can be used to replace [Flake8](https://pypi.org/project/flake8/) (plus dozens of plugins), [isort](https://pypi.org/project/isort/), [pydocstyle](https://pypi.org/project/pydocstyle/), [yesqa](https://github.com/asottile/yesqa), [eradicate](https://pypi.org/project/eradicate/), [pyupgrade](https://pypi.org/project/pyupgrade/), and [autoflake](https://pypi.org/project/autoflake/), all while executing (in Rust) tens or hundreds of times faster than any individual tool.

Running `ruff --format=github .` in GitHub Actions will rapidly provide intuitive GitHub Annotations to contributors.

![image](https://user-images.githubusercontent.com/3709715/223758136-afc386d2-70aa-4eff-953a-2c2d82ceea23.png)
@Neo23x0
Copy link
Owner

Neo23x0 commented Apr 3, 2023

So, I would have to update some version numbers on the requirements.txt and see if LOKI still builds after that.
I guess it would take a few hours to do that and I don't know if and when I find the time to do it.

@cclauss
Copy link
Contributor Author

cclauss commented Apr 3, 2023

Let's close as won't fix because this repo is not actively maintained.

@cclauss cclauss closed this Apr 3, 2023
@cclauss cclauss deleted the patch-2 branch April 3, 2023 17:40
@Neo23x0
Copy link
Owner

Neo23x0 commented Apr 3, 2023

Why did you even delete the patch branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants